import request from '@/utils/request'

// 获取库存列表
export const getStockListService = (params) => {
    return request.get('/api/stock', { params })
}

// 更新库存信息
export const updateStockService = (id, data) => {
    return request.put(`/api/stock/${id}`, data)
}

// 获取入库记录
export const getStockInListService = (params) => {
    return request.get('/api/stock-in', { params })
}

// 添加入库记录
export const addStockInService = (data) => {
    return request.post('/api/stock-in', data)
}

// 获取出库记录
export const getStockOutListService = (params) => {
    return request.get('/api/stock-out', { params })
}

// 添加出库记录
export const addStockOutService = (data) => {
    return request.post('/api/stock-out', data)
} 